public class DivideByZero
{

    private int denominator, numerator, quotient;
    public DivideByZero()
    {
        denominator = 0; numerator =  12;
        quotient = quotient(  numerator, denominator );

        System.out.print("Quotient is " + quotient);
        try
        {

            quotient = quotient(  numerator, denominator );
            System.out.print("Quotient is " + quotient);
        }
        catch(ArithmeticException ex)
        {
            System.out.print("I found exception " );
        }
    }


    public int quotient ( int numerator, int denominator )
    {
        return  numerator / denominator;
    }
    public static void main( String args[] )
    {

        DivideByZero application = new DivideByZero();
    }
}


